<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-CN">
<html>
  <head>
    <meta charset="utf-8">
  	<meta http-equiv="X-UA-Compatible" content="IE=edge">
  	<%@ include file="/common/sale/include/common-base.jsp"%>
    <title>理财管理-${titleName }</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  <style>
  .nav-tabs-custom > .tab-content{overflow:hidden}
  </style>
  <body class="hold-transition skin-yellow sidebar-mini">
<div class="wrapper">
  <!-- top start -->
  <%@include file="/common/sale/top.jsp" %>
  <!-- top end -->
  
  <!-- left start -->
  <%@include file="/common/sale/left.jsp" %>
  <!-- left end-->

  <!-- Main start -->
  <div class="content-wrapper">
    <!-- Main start -->
	<section class="content">
      <div class="row">
        <div class="col-xs-12">
            
             <!------搜索  start ------->
          <div class="box box-info">
             <!--搜索title  start --> 
	          <div class="box-header with-border">
                 <h3 class="box-title"><i class="fa fa-search"></i>查询搜索</h3>
                 <div class="box-tools pull-right">
	                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
	                </button>
	                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                 </div>
              </div>
            <!--搜索title  end --> 
            <div class="box-body">
			  <form id="searchFrom" class="form-horizontal">
				<div class="form-group">
					<div class="col-sm-3 text_r"><label class="control-label" >项目名称：</label></div>
					<div class="col-sm-2">
						 <input type="text" class="form-control clean"  name="pubProdInfo.wl_proNo"  value=""/>
					</div>
					<div class="col-sm-3 text_r"><label class="control-label" >合同编号：</label></div>
					<div class="col-sm-2">
						 <input type="text" class="form-control clean"  name="pubProdInfo.wl_proName"  value=""/>
					</div>
				</div>
				<center>
				   <div class="box-footer clearfix">
				       <button type="button" class="btn btn-success" onclick="getTableData();"><i class="fa fa-search"></i> 查询</button>&nbsp;
				       <button  type="button" class="btn btn-warning" onclick="cleanData('searchFrom');">重置 </button>
				   </div>
				</center>
			  </form>
            </div>
	     </div>
	     <!------- 搜索 end -------->
            
         <!------- 列表 start -------->
	      <div class="box box-success">
            <!--列表title  start --> 
	          <div class="box-header with-border">
                 <h3 class="box-title"><i class="fa fa-user"></i> 理财列表 
<%--                 　　　              	<button  onclick="toAdds();" class="btn btn-success" type="button"><i class="fa fa-plus-circle"></i> 增加 </button>--%>
                 </h3>
                 <div class="box-tools pull-right">
	                 　　　　　　　　<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
	                </button>
	                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                 </div>
              </div>
            <!--列表title  end --> 
              <div class="box-body">
	              <table id="dataList" class="table table-bordered table-hover" >
                <thead class="bg-success">
                <tr>           
                  <th>序号</th>
                  <th>合同编号</th>
                  <th>项目名称</th>
                  <th>借款人</th>
                  <th>借款金额</th>
                  <th>起息日期</th>
                  <th>截止日期</th>
                  <th>年化率</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody id="dataList">
	                 <tr>           
	                  <td>1</td>
	                  <td>LC2017010523123234</td>
	                  <td>红玫瑰一号</td>
	                  <td>华胜天成股份有限公司</td>
	                  <td>10,000,000.00</td>
	                  <td>2017-01-03</td>
	                  <td>2018-01-03</td>
	                  <td>5.56%</td>
	                  <td>
	                  	<button type="button" class="btn btn-danger btn-xs" onclick="popWin('LC2017010523123888');">还款明细</button>
	                  		&nbsp;
	                  	<button type="button" class="btn btn-success btn-xs" onclick="popUser('LC2017020600000014');">投资人管理</button>
	                  </td>
	                </tr>
	                 <tr>           
	                  <td>2</td>
	                  <td>LC2017010523123888</td>
	                  <td>日鑫月溢90天</td>
	                  <td>招商银行之中关村支行</td>
	                  <td>5,000,000.00</td>
	                  <td>2017-01-09</td>
	                  <td>2018-04-05</td>
	                  <td>3.1%</td>
	                  <td>
	                  	<button type="button" class="btn btn-danger btn-xs" onclick="popWin('LC2017010523123888');">还款明细</button>
	                  		&nbsp;
	                  	<button type="button" class="btn btn-success btn-xs" onclick="popUser('LC2017020600000014');">投资人管理</button>
	                  </td>
	                </tr>
	                 <tr>           
	                  <td>3</td>
	                  <td>LC2017020600000014</td>
	                  <td>财富宝</td>
	                  <td>盛京银行</td>
	                  <td>5,000,000.00</td>
	                  <td>2017-03-01</td>
	                  <td>2018-09-01</td>
	                  <td>4.3%</td>
	                  <td>
	                  	<button type="button" class="btn btn-danger btn-xs" onclick="popWin('LC2017020600000014');">还款明细</button>
	                  	&nbsp;
	                  	<button type="button" class="btn btn-success btn-xs" onclick="popUser('LC2017020600000014');">投资人管理</button>
	                  </td>
	                </tr>
                </tbody>
              </table>
              <center>
    	  		<ul id="dataList-page"></ul>
              </center>
            </div>
           </div>
	     <!------- 列表 end-------->   
	     
	     
	     
	     <div class="modal fade" id="my_modal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 800px">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close"  data-dismiss="modal" aria-hidden="true" onclick="cleanJiaoyan('addForm1')">
							×
						</button>
						<h4 class="modal-title">
							<font color="red">还款明细</font> 
						</h4>
					</div>

					<div class="modal-body">
					       <table class="table table-bordered table-hover" id="tab_2" >
		          	<thead>
		          		<tr>
		          			<th><input id="checkAll" type="checkbox" value="" onclick="checkAll(this,'Fruit')"/>全选</th>
		          			<th>还款期数</th>
		          			<th>还款日期</th>
		          			<th>本期应还利息</th>
		          			<th>本期应还本金</th>
		          			<th>本期应还总额</th>
		          			<th>剩余本金</th>
		          			<th>还款状态</th>
		          			<th>操作</th>
		          		</tr>
		          	</thead>
		          	<tbody>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>1</td>
		          			<td>2015-08-01</td>
		          			<td>426.66</td>
		          			<td>0.00</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>2</td>
		          			<td>2015-09-01</td>
		          			<td>426.66</td>
		          			<td>0.00</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>3</td>
		          			<td>2015-10-01</td>
		          			<td>426.66</td>
		          			<td>0.00</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>4</td>
		          			<td>2015-11-01</td>
		          			<td>426.66</td>
		          			<td>0.00</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>5</td>
		          			<td>2015-12-01</td>
		          			<td>426.66</td>
		          			<td>0.00</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th><input name="Fruit" type="checkbox" value="" /></th>
		          			<td>6</td>
		          			<td>2016-01-01</td>
		          			<td>426.66</td>
		          			<td>50000.00</td>
		          			<td>50426.66</td>
		          			<td>0.00</td>
		          			<td>待还款</td>
		          			<td>
		          				<input type="button" onclick="" class="btn btn-danger btn-xs" value="还款" />
		          			</td>
		          		</tr>
		          		<tr>
		          			<th></th>
		          			<td>总计</td>
		          			<td></td>
		          			<td>2559.96</td>
		          			<td>50000.00</td>
		          			<td>52559.96</td>
		          			<td></td>
		          			<td></td>
		          		</tr>
		          	</tbody>
		          </table>
			                
					</div>
				</div>
				<!-- /.modal-content -->
			</div>		
	</div>  
	     
	     <div class="modal fade" id="my_modal_user" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 800px">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close"  data-dismiss="modal" aria-hidden="true" onclick="cleanJiaoyan('addForm1')">
							×
						</button>
						<h4 class="modal-title">
							<font color="red">投资人列表</font> 
						</h4>
					</div>

					<div class="modal-body">
					       <table class="table table-bordered table-hover" id="tab_user" >
		          	<thead>
		          	
		          	<tr>
		          			<th>序号</th>
		          			<th>项目名称</th>
		          			<th>出借人</th>
		          			<th>投资金额</th>
		          			<th>投资时间</th>
		          			<th>已还本金</th>
		          			<th>已还利息</th>
		          			<th>剩余本金</th>
		          			<th>状态</th>
		          		</tr>
		          	
		          		
		          	</thead>
		          	<tbody>
		          		<tr>
		          			<td>1</td>
		          			<td>红玫瑰一号</td>
		          			<td>姚凯丹</td>
		          			<td>10,000.00</td>
		          			<td>2017-01-10</td>
		          			<td>1,000.00</td>
		          			<td>100.00</td>
		          			<td>9,000.00</td>
		          			<td>还款中</td>
		          		</tr>
		          		
		          		<tr>
		          			<td>2</td>
		          			<td>红玫瑰一号</td>
		          			<td>丁小勇</td>
		          			<td>10,000.00</td>
		          			<td>2017-01-15</td>
		          			<td>1,000.00</td>
		          			<td>100.00</td>
		          			<td>9,000.00</td>
		          			<td>还款中</td>
		          		</tr>
		          		
		          		<tr>
		          			<td>3</td>
		          			<td>红玫瑰一号</td>
		          			<td>常付鹏</td>
		          			<td>20,000.00</td>
		          			<td>2017-01-15</td>
		          			<td>2,000.00</td>
		          			<td>200.00</td>
		          			<td>18,000.00</td>
		          			<td>还款中</td>
		          		</tr>
		          	</tbody>
		          </table>
			                
					</div>
				</div>
				<!-- /.modal-content -->
			</div>		
		</div>  
	     
          </div>
        </div>
      </div>
    </section>
    <!-- Main end -->
  </div>
  <!-- /.content-wrapper -->
  <!-- foot start -->
  <%@include file="/common/sale/foot.jsp" %>
  <!-- foot start -->

</body>
<script>
var clickMenu = "finance-list";


function popWin(id){
	$("#my_modal_edit").modal('show');
}
function popUser(id){
	$("#my_modal_user").modal('show');
}
</script>
  </body>
</html>
